package com.youi.entity;

import java.util.Date;
import java.util.List;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 平台提现信息
 * @author XJY
 */
public class Plamtwithdraw implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long creatorId;					    //申请人id
	private Long auditorId;					    //审核人id
	private Integer status;					    //审核状态(-1作废 0未审核 1已审核(待打款 ) 2提现成功 3提现失败)
	private String withdrawNo;				    //提现单号
	private String dateNo;					    //期号
	private Integer orderCount;					//订单总数
	private Double orderAmount;					//订单总额
	private Double serviceCharge;			    //手续费
	private Double allProfitAmount;			    //平台总分润(加上手续费)
	private Double realProfitAmount;		    //平台真实分润(除去手续费)
	private Double merchantAmount;			    //供应商总分润
	private Double leaderAmount;			    //团长总分润
	private Double realityAmount;			    //平台到账分润
	private Date gmtApply;					    //审核时间
	private String applyIdea;					//审核意见
	private Date gmtWithdraw;					//提现时间
	private String remark;						//备注

	private String auditorName;					//审核人名称
	private List<Plamtwithdrawdetail> plamtwithdrawdetailList;  //平台提现申请单明细
	
    public Plamtwithdraw(){

    }

    public Plamtwithdraw(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }
    
    public Plamtwithdraw(Long creatorId,String withdrawNo,String dateNo) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.creatorId=creatorId;
        this.withdrawNo=withdrawNo;
        this.dateNo=dateNo;
        this.status=0;
     }


    public Plamtwithdraw(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,Long creatorId,Long auditorId,Integer status,String withdrawNo,String dateNo,Integer orderCount,Double orderAmount,Double serviceCharge,Double allProfitAmount,Double realProfitAmount,Double merchantAmount,Double leaderAmount,Double realityAmount,Date gmtApply,String applyIdea,Date gmtWithdraw) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.creatorId=creatorId;
       this.auditorId=auditorId;
       this.status=status;
       this.withdrawNo=withdrawNo;
       this.dateNo=dateNo;
       this.orderCount=orderCount;
       this.orderAmount=orderAmount;
       this.serviceCharge=serviceCharge;
       this.allProfitAmount=allProfitAmount;
       this.realProfitAmount=realProfitAmount;
       this.merchantAmount=merchantAmount;
       this.leaderAmount=leaderAmount;
       this.realityAmount=realityAmount;
       this.gmtApply=gmtApply;
       this.applyIdea=applyIdea;
       this.gmtWithdraw=gmtWithdraw;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setCreatorId(Long creatorId){
		this.creatorId=creatorId;
	}

	public Long getCreatorId(){
		return creatorId;
	}

	public void setAuditorId(Long auditorId){
		this.auditorId=auditorId;
	}

	public Long getAuditorId(){
		return auditorId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public void setWithdrawNo(String withdrawNo){
		this.withdrawNo=withdrawNo;
	}

	public String getWithdrawNo(){
		return withdrawNo;
	}

	public void setDateNo(String dateNo){
		this.dateNo=dateNo;
	}

	public String getDateNo(){
		return dateNo;
	}

	public void setOrderCount(Integer orderCount){
		this.orderCount=orderCount;
	}

	public Integer getOrderCount(){
		return orderCount;
	}

	public void setOrderAmount(Double orderAmount){
		this.orderAmount=orderAmount;
	}

	public Double getOrderAmount(){
		return orderAmount;
	}

	public void setServiceCharge(Double serviceCharge){
		this.serviceCharge=serviceCharge;
	}

	public Double getServiceCharge(){
		return serviceCharge;
	}

	public void setAllProfitAmount(Double allProfitAmount){
		this.allProfitAmount=allProfitAmount;
	}

	public Double getAllProfitAmount(){
		return allProfitAmount;
	}

	public void setRealProfitAmount(Double realProfitAmount){
		this.realProfitAmount=realProfitAmount;
	}

	public Double getRealProfitAmount(){
		return realProfitAmount;
	}

	public void setMerchantAmount(Double merchantAmount){
		this.merchantAmount=merchantAmount;
	}

	public Double getMerchantAmount(){
		return merchantAmount;
	}

	public void setLeaderAmount(Double leaderAmount){
		this.leaderAmount=leaderAmount;
	}

	public Double getLeaderAmount(){
		return leaderAmount;
	}

	public void setRealityAmount(Double realityAmount){
		this.realityAmount=realityAmount;
	}

	public Double getRealityAmount(){
		return realityAmount;
	}

	public void setGmtApply(Date gmtApply){
		this.gmtApply=gmtApply;
	}

	public Date getGmtApply(){
		return gmtApply;
	}

	public void setApplyIdea(String applyIdea){
		this.applyIdea=applyIdea;
	}

	public String getApplyIdea(){
		return applyIdea;
	}

	public void setGmtWithdraw(Date gmtWithdraw){
		this.gmtWithdraw=gmtWithdraw;
	}

	public Date getGmtWithdraw(){
		return gmtWithdraw;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<Plamtwithdrawdetail> getPlamtwithdrawdetailList() {
		return plamtwithdrawdetailList;
	}

	public void setPlamtwithdrawdetailList(List<Plamtwithdrawdetail> plamtwithdrawdetailList) {
		this.plamtwithdrawdetailList = plamtwithdrawdetailList;
	}

	public String getAuditorName() {
		return auditorName;
	}

	public void setAuditorName(String auditorName) {
		this.auditorName = auditorName;
	}

}
